@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  width: 100vw;
  height: 100vh;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  color: #18181B;
  overflow: hidden;
}

label {
  font-weight: 700;
}

html {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px 0px 20px 0px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

/* 按钮 */
.el-button,
.el-button--primary,
.el-button--success,
.el-button--warning,
.el-button--danger,
.el-button--info {
  border-radius: 8px;
}

/* 输入框、文本域 */
.el-input__inner,
.el-textarea__inner {
  border-radius: 8px;
}

/* 卡片 */
.el-card {
  border-radius: 8px;
}

/* 弹窗 Dialog */
.el-dialog {
  border-radius: 8px;
}
.el-dialog__header,
.el-dialog__body,
.el-dialog__footer {
  border-radius: 8px;
}

/* 表格 */
.el-table {
  border-radius: 8px;
}

/* 下拉框、选择器 */
.el-select,
.el-select-dropdown,
.el-dropdown-menu,
.el-cascader,
.el-cascader-menu {
  border-radius: 8px;
}

/* 消息提示 MessageBox / Notification / Message */
.el-message-box,
.el-notification,
.el-message {
  border-radius: 8px;
}

/* 标签 Tag */
.el-tag {
  border-radius: 8px;
}

/* 进度条 Progress */
.el-progress-bar__inner,
.el-progress {
  border-radius: 8px;
}

/* 分页 Pagination */
.el-pagination button,
.el-pagination .el-pager li {
  border-radius: 8px;
}

/* 警告框 Alert */
.el-alert {
  border-radius: 8px;
}

/* 上传 Upload */
.el-upload,
.el-upload-dragger {
  border-radius: 8px;
}

/* 步骤条 Steps */
.el-steps,
.el-step {
  border-radius: 8px;
}

/* 树 Tree */
.el-tree-node__content {
  border-radius: 8px;
}

/* 折叠面板 Collapse */
.el-collapse-item__header,
.el-collapse-item__wrap {
  border-radius: 8px;
}

.el-input__inner:hover,
.el-input__inner:focus {
  border-color: #219bf4 ;
  box-shadow: 0 0 0 2.4px #219bf426;
}

.el-button:hover {
  opacity: 0.99;
}

.v-modal{
  opacity: 1;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  z-index: 2000 !important;
}
.el-dialog__wrapper{
  z-index: 2001 !important;
}
.el-dialog{
  box-shadow: rgba(0, 0, 0, 0.15) 0px 4px 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.el-submenu__title{
  height: 40px;
  line-height: 40px;
}
.el-submenu .el-menu-item{
  height: 40px;
  line-height: 40px;
}

.el-message {
  border: none !important;           /* 去掉默认边框 */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2) !important; /* 可调或去掉 */
  border-radius: 4px;

  .el-message__icon,
  .el-message__closeBtn {
    color: #ffffff !important;
  }

  .el-message__content {
    color: #ffffff !important;
  }
}

/* 各类型背景色 */
.el-message--info { background-color: #0a0a0a; }       /* 主题色 */
.el-message--success { background-color: #00cc77; }    /* 暗绿色 */
.el-message--warning { background-color: #e6a800; }    /* 暗黄色 */
.el-message--error { background-color: #ff2e63; }      /* 霓虹红 */


/* 默认深色背景 */
.el-notification {
  background-color: #0a0a0a;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);

  .el-notification__title,
  .el-notification__content,
  .el-notification__close {
    color: #ffffff !important;
  }

  i[class^="el-icon-"] {
    color: #ffffff !important;
  }
}

.el-notification .el-icon-info,
.el-notification .el-icon-success,
.el-notification .el-icon-warning,
.el-notification .el-icon-error{
  color: #ffffff !important;
}
.el-notification__closeBtn{
  color: #ffffff !important;
}
/* Success */
.el-notification:has(i.el-icon-success) {
  background-color: #00cc77; /* 暗绿色 */
}

/* Warning */
.el-notification:has(i.el-icon-warning) {
  background-color: #e6a800; /* 暗黄色 */
}

/* Error */
.el-notification:has(i.el-icon-error) {
  background-color: #ff2e63; /* 霓虹红 */
}
